package com.glq1218.service;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

public interface CustomUserDetailsService {
    /**
     * 通过邮箱获取用户
     * @param email 邮箱
     * @return 用户信息
     * @throws UsernameNotFoundException 用户没有找到的异常
     */
    UserDetails loadUserByEmail(String email);

    UserDetails loadUserByPhone(String email);
}
